package us.gaaoc.framework.dao;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;

import us.gaaoc.framework.model.CaseRecordAction;

public class CaseRecordActionDAOHibernate extends GenericHibernateDAO<CaseRecordAction, Integer,CaseRecordActionDAO> 
	implements CaseRecordActionDAO
{

	@SuppressWarnings("unchecked")
	@Override
	public List<CaseRecordAction> getActionsByCaseType(int i) {
		return this.getSession().createCriteria(CaseRecordAction.class)
			.add(Restrictions.eq("caseRecordType.code", i))
			.list();
		
	}

}
